﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlCategoryProduct.ascx.cs" Inherits="Usercontrol_ControlCategoryProduct" %>
<%@ Import Namespace="webapp4U" %>


<%@ Import Namespace="webapp4U" %>
<style type="text/css">

  #menu li a {display:inline-block;}
  
  #menu  li a {display:block;}
 
  ul#menu, ul#menu ul {
  list-style-type:none;
  margin: 0;
  padding: 0;
  width: 15em;
}

ul#menu a {
  display: block;
  text-decoration: none;	
}

ul#menu li {
  margin-top: 1px;
}

ul#menu li a {
  background: #333;
  color: #fff;	
  padding: 0.5em;
}

ul#menu li a:hover {
  background: #000;
}

ul#menu li ul li a {
  background: #ccc;
  color: #000;
  padding-left: 20px;
}

ul#menu li ul li a:hover {
  background: #aaa;
  border-left: 5px #000 solid;
  padding-left: 15px;
}

 
  </style>
   

<ul id="menu">
<asp:Repeater ID="rpt_subsubcategory"  runat="server">
            <ItemTemplate>
<li>	
	<a href='<%=Globals.ApplicationPath %>Page/Products/Default.aspx?CommodKey=<%# Eval("commodkey") %>'><%# Eval("description")%></a>
     <asp:Label Visible="false" ID="lblRoot" runat="server" Text='<%# Eval("commodkey")%>'>
                                </asp:Label>
        <ul>
         <asp:Repeater ID="rpt_subsubcategory" DataSourceID="SqlDataSource2" runat="server">
            <ItemTemplate>
                     <li><a href='<%=Globals.ApplicationPath %>Page/Products/Default.aspx?InClassKey=<%# Eval("inclasskey") %>'><%# Eval("description")%></a></li>
            </ItemTemplate>
         </asp:Repeater>
       </ul>
</li>
 <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:SqlServices %>" 
                                                    SelectCommand="k_getInclass" SelectCommandType="StoredProcedure">
                                                    <SelectParameters>
                                                        <asp:ControlParameter ControlID="lblRoot" Type="String" Name="commodkey" />
                                                    </SelectParameters>
                                                </asp:SqlDataSource>
 </ItemTemplate>
         </asp:Repeater>
</ul>


